﻿#region Copyright © 2010 Chad Albrecht & Mark Adams
/*
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.*/

/* © BLOKUS and associated trademarks are copyright Mattel, Inc.   */
#endregion

using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace Blokus
{
    public class OneA : Piece
    {
        public OneA(Color color, TileWell parent)
            : base(color, parent, "Single Square", 1, 1)
        {
            AddTile(0, 0);

            InitTiles(); 
        }
    }

    public class TwoA : Piece
    {
        public TwoA(Color color, TileWell parent)
            : base(color, parent, "Two Squares", 4, 1)
        {
            AddTile(0, 0);
            AddTile(0, 1);

            InitTiles(); 
        }
    }

    public class ThreeA : Piece
    {
        public ThreeA(Color color, TileWell parent)
            : base(color, parent, "Three Squares", 4, 1)
        {
            AddTile(0, 0);
            AddTile(0, 1);
            AddTile(0, 2);

            InitTiles(); 
        }
    }

    public class ThreeB : Piece
    {
        public ThreeB(Color color, TileWell parent)
            : base(color, parent, "Bent Three Square", 4, 1)
        {
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(1, 0);

            InitTiles(); 
        }
    }

    public class FourA : Piece
    {
        public FourA(Color color, TileWell parent)
            : base(color, parent, "Four Square", 4, 1)
        {
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(0, 1);
            AddTile(0, 2);

            InitTiles(); 
        }
    }

    public class FourB : Piece
    {
        public FourB(Color color, TileWell parent)
            : base(color, parent, "Four Square L", 4, 1)
        {
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(0, 1);
            AddTile(1, 1);

            InitTiles(); 
        }
    }

    public class FourC : Piece
    {
        public FourC(Color color, TileWell parent)
            : base(color, parent, "Four Square Tee", 4, 1)
        {
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(0, 1);
            AddTile(1, 0);

            InitTiles(); 
        }
    }

    public class FourD : Piece
    {
        public FourD(Color color, TileWell parent)
            : base(color, parent, "Four Square Block", 4, 1)
        {
            AddTile(0, 0);
            AddTile(0, 1);
            AddTile(1, 0);
            AddTile(1, 1);

            InitTiles(); 
        }
    }

    public class FourE : Piece
    {
        public FourE(Color color, TileWell parent)
            : base(color, parent, "Four Square Zee", 4, 2)
        {
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(1, 0);
            AddTile(1, 1);

            InitTiles(); 
        }
    }

    public class FiveA : Piece
    {
        public FiveA(Color color, TileWell parent)
            : base(color, parent, "Five Square", 4, 1)
        {
            AddTile(0, -2);
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(0, 1);
            AddTile(0, 2);

            InitTiles(); 
        }
    }

    public class FiveB : Piece
    {
        public FiveB(Color color, TileWell parent)
            : base(color, parent, "Five Square Short L", 4, 1)
        {
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(0, 1);
            AddTile(0, 2);
            AddTile(1, 2);

            InitTiles(); 
        }
    }

    public class FiveC : Piece
    {
        public FiveC(Color color, TileWell parent)
            : base(color, parent, "Five Square Bend", 4, 2)
        {
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(0, 1);
            AddTile(1, 1);
            AddTile(1, 2);

            InitTiles(); 
        }
    }

    public class FiveD : Piece
    {
        public FiveD(Color color, TileWell parent)
            : base(color, parent, "Five Square P", 4, 2)
        {
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(0, 1);
            AddTile(1, 0);
            AddTile(1, 1);

            InitTiles(); 
        }
    }

    public class FiveE : Piece
    {
        public FiveE(Color color, TileWell parent)
            : base(color, parent, "Five Square U", 4, 1)
        {
            AddTile(1, -1);
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(0, 1);
            AddTile(1, 1);

            InitTiles(); 
        }
    }

    public class FiveF : Piece
    {
        public FiveF(Color color, TileWell parent)
            : base(color, parent, "Five Square Offset Tee", 4, 2)
        {
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(0, 1);
            AddTile(0, 2);
            AddTile(1, 0);

            InitTiles(); 
        }
    }

    public class FiveG : Piece
    {
        public FiveG(Color color, TileWell parent)
            : base(color, parent, "Five Square Tee", 4, 1)
        {
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(-1, 1);
            AddTile(0, 1);
            AddTile(1, 1);

            InitTiles(); 
        }
    }

    public class FiveH : Piece
    {
        public FiveH(Color color, TileWell parent)
            : base(color, parent, "Five Square Long L", 4, 2)
        {
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(0, 1);
            AddTile(1, 1);
            AddTile(2, 1);

            InitTiles(); 
        }
    }

    public class FiveI : Piece
    {
        public FiveI(Color color, TileWell parent)
            : base(color, parent, "Five Square Stairs", 4, 1)
        {
            AddTile(-1, -1);
            AddTile(0, -1);
            AddTile(0, 0);
            AddTile(1, 0);
            AddTile(1, 1);

            InitTiles(); 
        }
    }

    public class FiveJ : Piece
    {
        public FiveJ(Color color, TileWell parent)
            : base(color, parent, "Five Square Zig Zag", 4, 2)
        {
            AddTile(-1, -1);
            AddTile(-1, 0);
            AddTile(0, 0);
            AddTile(1, 0);
            AddTile(1, 1);

            InitTiles(); 
        }
    }

    public class FiveK : Piece
    {
        public FiveK(Color color, TileWell parent)
            : base(color, parent, "Five Square Gun", 4, 2)
        {
            AddTile(-1, -1);
            AddTile(-1, 0);
            AddTile(0, 0);
            AddTile(1, 0);
            AddTile(0, 1);

            InitTiles(); 
        }
    }

    public class FiveL : Piece
    {
        public FiveL(Color color, TileWell parent)
            : base(color, parent, "Five Square Cross", 1, 1)
        {
            AddTile(0, -1);
            AddTile(-1, 0);
            AddTile(0, 0);
            AddTile(1, 0);
            AddTile(0, 1);

            InitTiles(); 
        }
    }
}
